{% extends '::base.html.twig' %} 
{% block module_name %}Vacantes{% endblock %}
{% block title %}Vacantes{% endblock %}
{% block body %}
<h2>Planta Personal</h2>
<div class="widget_inside">
    <table class="regular datatables">
        <thead>
            <tr>
                <th>Codigo</th>
                <th>Cargo</th>  
                <th>Grado</th>  
                <th>Salario</th>  
                <th>Cantidad</th>     
                <th>Ocupados</th>     
                <th>Disponibles</th>     
                <th class="acciones">Acciones</th>
                </tr>
            </thead>
            <tbody>
    {% for entity in entities %}
                <tr>
                    <td>{{ entity['entity'].codigo }}</td>
                    <td>{{ entity['entity'].idCargo.nombre }}</td>       
                    <td>{{ entity['entity'].idGrado.nombre }}</td>       
                    <td>{{ entity['entity'].salario }}</td>           
                    <td>{{ entity['entity'].cantidad }}</td>      
                    <td>{{ entity['ocupados'] }}</td>      
                    <td>{{ entity['disponibles'] }}</td>      
                    <td>
                        <div class="acciones">
                            <select class="actions"><option value="">- Seleccione -</option>    
                                <option value="{{ path('vacantes_show', { 'id': entity['entity'].id }) }}">Mas Informaci&oacute;n</option>    
                                <option value="{{ path('vacantes_edit', { 'id': entity['entity'].id }) }}">Editar</option>  
                            </select>
                        </div>
                    </td>       
                </tr>
    {% endfor %}
            </tbody>
        </table>
        <div class="margin_top_15 right">
            <a href="{{ path('vacantes_new') }}" class="blue button">Agregar</a>
        </div>
    </div>
{% endblock %}
